<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::BoxConstrainedProblem&lt; SVMProblem &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_box_constrained_problem.html">BoxConstrainedProblem</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_box_constrained_problem-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle"><div class="title">shark::BoxConstrainedProblem&lt; SVMProblem &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Quadratic program with box constraints.  
 <a href="classshark_1_1_box_constrained_problem.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_box_constrained_problems_8h_source.html">shark/Algorithms/QP/BoxConstrainedProblems.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ad543ba354e420a5689e44919a44d190d" id="r_ad543ba354e420a5689e44919a44d190d"><td class="memItemLeft" align="right" valign="top">typedef SVMProblem::QpFloatType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ad543ba354e420a5689e44919a44d190d">QpFloatType</a></td></tr>
<tr class="separator:ad543ba354e420a5689e44919a44d190d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6ac16940dad311fe5702588be55ce85" id="r_ae6ac16940dad311fe5702588be55ce85"><td class="memItemLeft" align="right" valign="top">typedef SVMProblem::MatrixType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ae6ac16940dad311fe5702588be55ce85">MatrixType</a></td></tr>
<tr class="separator:ae6ac16940dad311fe5702588be55ce85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a09c817b94eb35a5b80ecf647149b95" id="r_a9a09c817b94eb35a5b80ecf647149b95"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structshark_1_1_maximum_gain_criterion.html">MaximumGainCriterion</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a9a09c817b94eb35a5b80ecf647149b95">PreferedSelectionStrategy</a></td></tr>
<tr class="separator:a9a09c817b94eb35a5b80ecf647149b95"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5544fa68b725cb68c8af64b4133a7c74" id="r_a5544fa68b725cb68c8af64b4133a7c74"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a5544fa68b725cb68c8af64b4133a7c74">BoxConstrainedProblem</a> (SVMProblem &amp;problem)</td></tr>
<tr class="separator:a5544fa68b725cb68c8af64b4133a7c74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ac86914b79e249895e9aa37a2eee055" id="r_a9ac86914b79e249895e9aa37a2eee055"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a9ac86914b79e249895e9aa37a2eee055">dimensions</a> () const</td></tr>
<tr class="separator:a9ac86914b79e249895e9aa37a2eee055"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0541d4c711a6d82bf2063d9cf030e551" id="r_a0541d4c711a6d82bf2063d9cf030e551"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a0541d4c711a6d82bf2063d9cf030e551">active</a> () const</td></tr>
<tr class="separator:a0541d4c711a6d82bf2063d9cf030e551"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11b7f562555c6f3718b059eee25bf765" id="r_a11b7f562555c6f3718b059eee25bf765"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a11b7f562555c6f3718b059eee25bf765">boxMin</a> (std::size_t i) const</td></tr>
<tr class="separator:a11b7f562555c6f3718b059eee25bf765"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2f65f5e6c2917efadd23806ba823ff2" id="r_ad2f65f5e6c2917efadd23806ba823ff2"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f65f5e6c2917efadd23806ba823ff2">boxMax</a> (std::size_t i) const</td></tr>
<tr class="separator:ad2f65f5e6c2917efadd23806ba823ff2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a066c7548372975c1dd243147c0adc1a3" id="r_a066c7548372975c1dd243147c0adc1a3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a066c7548372975c1dd243147c0adc1a3">isLowerBound</a> (std::size_t i) const</td></tr>
<tr class="separator:a066c7548372975c1dd243147c0adc1a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a598687378bfc492935546439156d9836" id="r_a598687378bfc492935546439156d9836"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a598687378bfc492935546439156d9836">isUpperBound</a> (std::size_t i) const</td></tr>
<tr class="separator:a598687378bfc492935546439156d9836"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a697ec9eb72894c871731ff96c880fb26" id="r_a697ec9eb72894c871731ff96c880fb26"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a697ec9eb72894c871731ff96c880fb26">isDeactivated</a> (std::size_t i) const</td></tr>
<tr class="separator:a697ec9eb72894c871731ff96c880fb26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66e89cd77e2cebd9f47b0c1777976aa0" id="r_a66e89cd77e2cebd9f47b0c1777976aa0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_box_constrained_problem.html#ae6ac16940dad311fe5702588be55ce85">MatrixType</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a66e89cd77e2cebd9f47b0c1777976aa0">quadratic</a> ()</td></tr>
<tr class="memdesc:a66e89cd77e2cebd9f47b0c1777976aa0"><td class="mdescLeft">&#160;</td><td class="mdescRight">representation of the quadratic part of the objective function  <br /></td></tr>
<tr class="separator:a66e89cd77e2cebd9f47b0c1777976aa0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73aaea4e475b7d635e48f793202716c9" id="r_a73aaea4e475b7d635e48f793202716c9"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a73aaea4e475b7d635e48f793202716c9">linear</a> (std::size_t i) const</td></tr>
<tr class="separator:a73aaea4e475b7d635e48f793202716c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0e263a6f4ea23985dd6e4b658e0a047" id="r_ae0e263a6f4ea23985dd6e4b658e0a047"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ae0e263a6f4ea23985dd6e4b658e0a047">alpha</a> (std::size_t i) const</td></tr>
<tr class="separator:ae0e263a6f4ea23985dd6e4b658e0a047"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b54b554bd89a28a03d63d8dcc97f101" id="r_a4b54b554bd89a28a03d63d8dcc97f101"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a4b54b554bd89a28a03d63d8dcc97f101">diagonal</a> (std::size_t i) const</td></tr>
<tr class="separator:a4b54b554bd89a28a03d63d8dcc97f101"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae716d77fe6226ae3d032e39586f54219" id="r_ae716d77fe6226ae3d032e39586f54219"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ae716d77fe6226ae3d032e39586f54219">gradient</a> (std::size_t i) const</td></tr>
<tr class="separator:ae716d77fe6226ae3d032e39586f54219"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4d7bdfee487c84a8a3eea33a4848fd7" id="r_aa4d7bdfee487c84a8a3eea33a4848fd7"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#aa4d7bdfee487c84a8a3eea33a4848fd7">permutation</a> (std::size_t i) const</td></tr>
<tr class="separator:aa4d7bdfee487c84a8a3eea33a4848fd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad42a5a9b13d427f07fe532c2a02f88fc" id="r_ad42a5a9b13d427f07fe532c2a02f88fc"><td class="memItemLeft" align="right" valign="top">RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ad42a5a9b13d427f07fe532c2a02f88fc">getUnpermutedAlpha</a> () const</td></tr>
<tr class="separator:ad42a5a9b13d427f07fe532c2a02f88fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2cc5b2f597778339bdeed341e71eff9" id="r_ae2cc5b2f597778339bdeed341e71eff9"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ae2cc5b2f597778339bdeed341e71eff9">updateSMO</a> (std::size_t i, std::size_t j)</td></tr>
<tr class="memdesc:ae2cc5b2f597778339bdeed341e71eff9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Does an update of SMO given a working set with indices i and j.  <br /></td></tr>
<tr class="separator:ae2cc5b2f597778339bdeed341e71eff9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b5309afbd6858c2315e315bed865ff6" id="r_a9b5309afbd6858c2315e315bed865ff6"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a9b5309afbd6858c2315e315bed865ff6">functionValue</a> () const</td></tr>
<tr class="memdesc:a9b5309afbd6858c2315e315bed865ff6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current function value of the problem.  <br /></td></tr>
<tr class="separator:a9b5309afbd6858c2315e315bed865ff6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d8e3e168039a9f71b9b1ed0f3b9dc23" id="r_a5d8e3e168039a9f71b9b1ed0f3b9dc23"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a5d8e3e168039a9f71b9b1ed0f3b9dc23">shrink</a> (double)</td></tr>
<tr class="separator:a5d8e3e168039a9f71b9b1ed0f3b9dc23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a379f06bbd07f0f7851596b5a43f53d3d" id="r_a379f06bbd07f0f7851596b5a43f53d3d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a379f06bbd07f0f7851596b5a43f53d3d">reshrink</a> ()</td></tr>
<tr class="separator:a379f06bbd07f0f7851596b5a43f53d3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac897d9b6915bf6899c7f456d63d15503" id="r_ac897d9b6915bf6899c7f456d63d15503"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ac897d9b6915bf6899c7f456d63d15503">unshrink</a> ()</td></tr>
<tr class="separator:ac897d9b6915bf6899c7f456d63d15503"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60cc7449d9f0d93d843780aa3fd36c72" id="r_a60cc7449d9f0d93d843780aa3fd36c72"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a60cc7449d9f0d93d843780aa3fd36c72">setInitialSolution</a> (RealVector const &amp;<a class="el" href="classshark_1_1_box_constrained_problem.html#ae0e263a6f4ea23985dd6e4b658e0a047">alpha</a>, RealVector const &amp;<a class="el" href="classshark_1_1_box_constrained_problem.html#ae716d77fe6226ae3d032e39586f54219">gradient</a>)</td></tr>
<tr class="memdesc:a60cc7449d9f0d93d843780aa3fd36c72"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define the initial solution for the iterative solver.  <br /></td></tr>
<tr class="separator:a60cc7449d9f0d93d843780aa3fd36c72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5182e43e8faad6b4996ab251e126032" id="r_ae5182e43e8faad6b4996ab251e126032"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ae5182e43e8faad6b4996ab251e126032">setInitialSolution</a> (RealVector const &amp;<a class="el" href="classshark_1_1_box_constrained_problem.html#ae0e263a6f4ea23985dd6e4b658e0a047">alpha</a>)</td></tr>
<tr class="memdesc:ae5182e43e8faad6b4996ab251e126032"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define the initial solution for the iterative solver.  <br /></td></tr>
<tr class="separator:ae5182e43e8faad6b4996ab251e126032"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:addce0a45f76c289e79eb03012b26efaf" id="r_addce0a45f76c289e79eb03012b26efaf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#addce0a45f76c289e79eb03012b26efaf">deactivateVariable</a> (std::size_t i)</td></tr>
<tr class="memdesc:addce0a45f76c289e79eb03012b26efaf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove the i-th example from the problem.  <br /></td></tr>
<tr class="separator:addce0a45f76c289e79eb03012b26efaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e70b06e9879ac5d14192b7b1ed551c9" id="r_a3e70b06e9879ac5d14192b7b1ed551c9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a3e70b06e9879ac5d14192b7b1ed551c9">activateVariable</a> (std::size_t i)</td></tr>
<tr class="memdesc:a3e70b06e9879ac5d14192b7b1ed551c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reactivate an previously deactivated variable.  <br /></td></tr>
<tr class="separator:a3e70b06e9879ac5d14192b7b1ed551c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a000d9bb8ba192023087461a40cd284d1" id="r_a000d9bb8ba192023087461a40cd284d1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a000d9bb8ba192023087461a40cd284d1">flipCoordinates</a> (std::size_t i, std::size_t j)</td></tr>
<tr class="memdesc:a000d9bb8ba192023087461a40cd284d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">exchange two variables via the permutation  <br /></td></tr>
<tr class="separator:a000d9bb8ba192023087461a40cd284d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93e3a2d3665ed4a8a7e51b610e41dce9" id="r_a93e3a2d3665ed4a8a7e51b610e41dce9"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a93e3a2d3665ed4a8a7e51b610e41dce9">setLinear</a> (std::size_t i, double newValue)</td></tr>
<tr class="memdesc:a93e3a2d3665ed4a8a7e51b610e41dce9"><td class="mdescLeft">&#160;</td><td class="mdescRight">adapts the linear part of the problem and updates the internal data structures accordingly.  <br /></td></tr>
<tr class="separator:a93e3a2d3665ed4a8a7e51b610e41dce9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af60ac2b478f7a141fca100daa8217edd" id="r_af60ac2b478f7a141fca100daa8217edd"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#af60ac2b478f7a141fca100daa8217edd">checkKKT</a> () const</td></tr>
<tr class="separator:af60ac2b478f7a141fca100daa8217edd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:ad2f62b98e7f7cd1ae112445192f27a1b" id="r_ad2f62b98e7f7cd1ae112445192f27a1b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f62b98e7f7cd1ae112445192f27a1b">updateAlphaStatus</a> (std::size_t i)</td></tr>
<tr class="separator:ad2f62b98e7f7cd1ae112445192f27a1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae85edb4b01745005489b5ced51e4253e" id="r_ae85edb4b01745005489b5ced51e4253e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#ae85edb4b01745005489b5ced51e4253e">testShrinkVariable</a> (std::size_t a, double largestUp, double smallestDown) const</td></tr>
<tr class="separator:ae85edb4b01745005489b5ced51e4253e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a4fb5abe606ff4359daa992960634f5a8" id="r_a4fb5abe606ff4359daa992960634f5a8"><td class="memItemLeft" align="right" valign="top">SVMProblem &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">m_problem</a></td></tr>
<tr class="separator:a4fb5abe606ff4359daa992960634f5a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ce2ae73fbcee010525160761665fa03" id="r_a3ce2ae73fbcee010525160761665fa03"><td class="memItemLeft" align="right" valign="top">RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a3ce2ae73fbcee010525160761665fa03">m_gradient</a></td></tr>
<tr class="memdesc:a3ce2ae73fbcee010525160761665fa03"><td class="mdescLeft">&#160;</td><td class="mdescRight">gradient of the objective function at the current alpha  <br /></td></tr>
<tr class="separator:a3ce2ae73fbcee010525160761665fa03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a575b8d0676d0e0f1ab8f476c0e28e434" id="r_a575b8d0676d0e0f1ab8f476c0e28e434"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#a575b8d0676d0e0f1ab8f476c0e28e434">m_active</a></td></tr>
<tr class="separator:a575b8d0676d0e0f1ab8f476c0e28e434"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebedd6dc4e4e1511da942671351e5acf" id="r_aebedd6dc4e4e1511da942671351e5acf"><td class="memItemLeft" align="right" valign="top">std::vector&lt; char &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_box_constrained_problem.html#aebedd6dc4e4e1511da942671351e5acf">m_alphaStatus</a></td></tr>
<tr class="separator:aebedd6dc4e4e1511da942671351e5acf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class SVMProblem&gt;<br />
class shark::BoxConstrainedProblem&lt; SVMProblem &gt;</div><p>Quadratic program with box constraints. </p>
<dl class="section user"><dt></dt><dd>An instance of this class represents a quadratic program of the type TODO: write documentation! </dd></dl>

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00138">138</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="ae6ac16940dad311fe5702588be55ce85" name="ae6ac16940dad311fe5702588be55ce85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6ac16940dad311fe5702588be55ce85">&#9670;&#160;</a></span>MatrixType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef SVMProblem::MatrixType <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;<a class="el" href="_mc_svm_linear_8cpp.html#a88ab98d46276376a56c2a396842cd58e">::MatrixType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00141">141</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

</div>
</div>
<a id="a9a09c817b94eb35a5b80ecf647149b95" name="a9a09c817b94eb35a5b80ecf647149b95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a09c817b94eb35a5b80ecf647149b95">&#9670;&#160;</a></span>PreferedSelectionStrategy</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structshark_1_1_maximum_gain_criterion.html">MaximumGainCriterion</a> <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::PreferedSelectionStrategy</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00142">142</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

</div>
</div>
<a id="ad543ba354e420a5689e44919a44d190d" name="ad543ba354e420a5689e44919a44d190d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad543ba354e420a5689e44919a44d190d">&#9670;&#160;</a></span>QpFloatType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef SVMProblem::QpFloatType <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::QpFloatType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00140">140</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a5544fa68b725cb68c8af64b4133a7c74" name="a5544fa68b725cb68c8af64b4133a7c74"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5544fa68b725cb68c8af64b4133a7c74">&#9670;&#160;</a></span>BoxConstrainedProblem()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::BoxConstrainedProblem </td>
          <td>(</td>
          <td class="paramtype">SVMProblem &amp;&#160;</td>
          <td class="paramname"><em>problem</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00145">145</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#ae0e263a6f4ea23985dd6e4b658e0a047">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::alpha()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a9ac86914b79e249895e9aa37a2eee055">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::dimensions()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a3ce2ae73fbcee010525160761665fa03">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_gradient</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a66e89cd77e2cebd9f47b0c1777976aa0">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::quadratic()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f62b98e7f7cd1ae112445192f27a1b">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateAlphaStatus()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a3e70b06e9879ac5d14192b7b1ed551c9" name="a3e70b06e9879ac5d14192b7b1ed551c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e70b06e9879ac5d14192b7b1ed551c9">&#9670;&#160;</a></span>activateVariable()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::activateVariable </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reactivate an previously deactivated variable. </p>

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00331">331</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#a9ac86914b79e249895e9aa37a2eee055">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::dimensions()</a>, <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f62b98e7f7cd1ae112445192f27a1b">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateAlphaStatus()</a>.</p>

</div>
</div>
<a id="a0541d4c711a6d82bf2063d9cf030e551" name="a0541d4c711a6d82bf2063d9cf030e551"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0541d4c711a6d82bf2063d9cf030e551">&#9670;&#160;</a></span>active()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::active </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00165">165</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#a575b8d0676d0e0f1ab8f476c0e28e434">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_active</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#addce0a45f76c289e79eb03012b26efaf">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::deactivateVariable()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#ae2cc5b2f597778339bdeed341e71eff9">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateSMO()</a>.</p>

</div>
</div>
<a id="ae0e263a6f4ea23985dd6e4b658e0a047" name="ae0e263a6f4ea23985dd6e4b658e0a047"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0e263a6f4ea23985dd6e4b658e0a047">&#9670;&#160;</a></span>alpha()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::alpha </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00194">194</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_problem</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#a5544fa68b725cb68c8af64b4133a7c74">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::BoxConstrainedProblem()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f65f5e6c2917efadd23806ba823ff2">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::boxMax()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a11b7f562555c6f3718b059eee25bf765">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::boxMin()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#addce0a45f76c289e79eb03012b26efaf">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::deactivateVariable()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ad42a5a9b13d427f07fe532c2a02f88fc">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::getUnpermutedAlpha()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ae5182e43e8faad6b4996ab251e126032">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setInitialSolution()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a60cc7449d9f0d93d843780aa3fd36c72">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setInitialSolution()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#ae2cc5b2f597778339bdeed341e71eff9">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateSMO()</a>.</p>

</div>
</div>
<a id="ad2f65f5e6c2917efadd23806ba823ff2" name="ad2f65f5e6c2917efadd23806ba823ff2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2f65f5e6c2917efadd23806ba823ff2">&#9670;&#160;</a></span>boxMax()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::boxMax </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00172">172</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#ae0e263a6f4ea23985dd6e4b658e0a047">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::alpha()</a>, <a class="el" href="namespaceshark.html#a51a13ac7e3cbd1f789124f6f132e5d02a58dcbef75d88f882ee2072dbc57c6fad">shark::AlphaDeactivated</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#aebedd6dc4e4e1511da942671351e5acf">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_alphaStatus</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_problem</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#a60cc7449d9f0d93d843780aa3fd36c72">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setInitialSolution()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f62b98e7f7cd1ae112445192f27a1b">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateAlphaStatus()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#ae2cc5b2f597778339bdeed341e71eff9">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateSMO()</a>.</p>

</div>
</div>
<a id="a11b7f562555c6f3718b059eee25bf765" name="a11b7f562555c6f3718b059eee25bf765"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11b7f562555c6f3718b059eee25bf765">&#9670;&#160;</a></span>boxMin()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::boxMin </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00169">169</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#ae0e263a6f4ea23985dd6e4b658e0a047">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::alpha()</a>, <a class="el" href="namespaceshark.html#a51a13ac7e3cbd1f789124f6f132e5d02a58dcbef75d88f882ee2072dbc57c6fad">shark::AlphaDeactivated</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#aebedd6dc4e4e1511da942671351e5acf">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_alphaStatus</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_problem</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#a60cc7449d9f0d93d843780aa3fd36c72">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setInitialSolution()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f62b98e7f7cd1ae112445192f27a1b">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateAlphaStatus()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#ae2cc5b2f597778339bdeed341e71eff9">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateSMO()</a>.</p>

</div>
</div>
<a id="af60ac2b478f7a141fca100daa8217edd" name="af60ac2b478f7a141fca100daa8217edd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af60ac2b478f7a141fca100daa8217edd">&#9670;&#160;</a></span>checkKKT()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::checkKKT </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00355">355</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#a9ac86914b79e249895e9aa37a2eee055">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::dimensions()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ae716d77fe6226ae3d032e39586f54219">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::gradient()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a697ec9eb72894c871731ff96c880fb26">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::isDeactivated()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a066c7548372975c1dd243147c0adc1a3">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::isLowerBound()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#a598687378bfc492935546439156d9836">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::isUpperBound()</a>.</p>

</div>
</div>
<a id="addce0a45f76c289e79eb03012b26efaf" name="addce0a45f76c289e79eb03012b26efaf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#addce0a45f76c289e79eb03012b26efaf">&#9670;&#160;</a></span>deactivateVariable()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::deactivateVariable </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Remove the i-th example from the problem. </p>

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00320">320</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#a0541d4c711a6d82bf2063d9cf030e551">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::active()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ae0e263a6f4ea23985dd6e4b658e0a047">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::alpha()</a>, <a class="el" href="namespaceshark.html#a51a13ac7e3cbd1f789124f6f132e5d02a58dcbef75d88f882ee2072dbc57c6fad">shark::AlphaDeactivated</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a9ac86914b79e249895e9aa37a2eee055">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::dimensions()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#aebedd6dc4e4e1511da942671351e5acf">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_alphaStatus</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a3ce2ae73fbcee010525160761665fa03">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_gradient</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_problem</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a66e89cd77e2cebd9f47b0c1777976aa0">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::quadratic()</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="a4b54b554bd89a28a03d63d8dcc97f101" name="a4b54b554bd89a28a03d63d8dcc97f101"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b54b554bd89a28a03d63d8dcc97f101">&#9670;&#160;</a></span>diagonal()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::diagonal </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00198">198</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_problem</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#ae2cc5b2f597778339bdeed341e71eff9">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateSMO()</a>.</p>

</div>
</div>
<a id="a9ac86914b79e249895e9aa37a2eee055" name="a9ac86914b79e249895e9aa37a2eee055"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ac86914b79e249895e9aa37a2eee055">&#9670;&#160;</a></span>dimensions()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::dimensions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00161">161</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_problem</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#a3e70b06e9879ac5d14192b7b1ed551c9">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::activateVariable()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a5544fa68b725cb68c8af64b4133a7c74">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::BoxConstrainedProblem()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#af60ac2b478f7a141fca100daa8217edd">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::checkKKT()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#addce0a45f76c289e79eb03012b26efaf">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::deactivateVariable()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a000d9bb8ba192023087461a40cd284d1">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::flipCoordinates()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ad42a5a9b13d427f07fe532c2a02f88fc">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::getUnpermutedAlpha()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ae5182e43e8faad6b4996ab251e126032">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setInitialSolution()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a60cc7449d9f0d93d843780aa3fd36c72">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setInitialSolution()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f62b98e7f7cd1ae112445192f27a1b">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateAlphaStatus()</a>.</p>

</div>
</div>
<a id="a000d9bb8ba192023087461a40cd284d1" name="a000d9bb8ba192023087461a40cd284d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a000d9bb8ba192023087461a40cd284d1">&#9670;&#160;</a></span>flipCoordinates()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::flipCoordinates </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>exchange two variables via the permutation </p>

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00337">337</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#a9ac86914b79e249895e9aa37a2eee055">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::dimensions()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#aebedd6dc4e4e1511da942671351e5acf">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_alphaStatus</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a3ce2ae73fbcee010525160761665fa03">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_gradient</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_problem</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="a9b5309afbd6858c2315e315bed865ff6" name="a9b5309afbd6858c2315e315bed865ff6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b5309afbd6858c2315e315bed865ff6">&#9670;&#160;</a></span>functionValue()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::functionValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the current function value of the problem. </p>

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00269">269</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#a3ce2ae73fbcee010525160761665fa03">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_gradient</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_problem</a>.</p>

</div>
</div>
<a id="ad42a5a9b13d427f07fe532c2a02f88fc" name="ad42a5a9b13d427f07fe532c2a02f88fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad42a5a9b13d427f07fe532c2a02f88fc">&#9670;&#160;</a></span>getUnpermutedAlpha()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">RealVector <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::getUnpermutedAlpha </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00210">210</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#ae0e263a6f4ea23985dd6e4b658e0a047">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::alpha()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a9ac86914b79e249895e9aa37a2eee055">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::dimensions()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_problem</a>.</p>

</div>
</div>
<a id="ae716d77fe6226ae3d032e39586f54219" name="ae716d77fe6226ae3d032e39586f54219"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae716d77fe6226ae3d032e39586f54219">&#9670;&#160;</a></span>gradient()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::gradient </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00202">202</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#a3ce2ae73fbcee010525160761665fa03">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_gradient</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#af60ac2b478f7a141fca100daa8217edd">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::checkKKT()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ae5182e43e8faad6b4996ab251e126032">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setInitialSolution()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a60cc7449d9f0d93d843780aa3fd36c72">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setInitialSolution()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ae85edb4b01745005489b5ced51e4253e">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::testShrinkVariable()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#ae2cc5b2f597778339bdeed341e71eff9">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateSMO()</a>.</p>

</div>
</div>
<a id="a697ec9eb72894c871731ff96c880fb26" name="a697ec9eb72894c871731ff96c880fb26"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a697ec9eb72894c871731ff96c880fb26">&#9670;&#160;</a></span>isDeactivated()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::isDeactivated </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00181">181</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#a066c7548372975c1dd243147c0adc1a3">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::isLowerBound()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#a598687378bfc492935546439156d9836">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::isUpperBound()</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#af60ac2b478f7a141fca100daa8217edd">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::checkKKT()</a>.</p>

</div>
</div>
<a id="a066c7548372975c1dd243147c0adc1a3" name="a066c7548372975c1dd243147c0adc1a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a066c7548372975c1dd243147c0adc1a3">&#9670;&#160;</a></span>isLowerBound()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::isLowerBound </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00175">175</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark.html#a51a13ac7e3cbd1f789124f6f132e5d02aba725b5f89015335eeea5ee054dae747">shark::AlphaLowerBound</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#aebedd6dc4e4e1511da942671351e5acf">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_alphaStatus</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#af60ac2b478f7a141fca100daa8217edd">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::checkKKT()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a697ec9eb72894c871731ff96c880fb26">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::isDeactivated()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#ae85edb4b01745005489b5ced51e4253e">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::testShrinkVariable()</a>.</p>

</div>
</div>
<a id="a598687378bfc492935546439156d9836" name="a598687378bfc492935546439156d9836"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a598687378bfc492935546439156d9836">&#9670;&#160;</a></span>isUpperBound()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::isUpperBound </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00178">178</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark.html#a51a13ac7e3cbd1f789124f6f132e5d02ab7f64265c75300658e04dfbc2ae28db5">shark::AlphaUpperBound</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#aebedd6dc4e4e1511da942671351e5acf">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_alphaStatus</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#af60ac2b478f7a141fca100daa8217edd">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::checkKKT()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a697ec9eb72894c871731ff96c880fb26">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::isDeactivated()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#ae85edb4b01745005489b5ced51e4253e">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::testShrinkVariable()</a>.</p>

</div>
</div>
<a id="a73aaea4e475b7d635e48f793202716c9" name="a73aaea4e475b7d635e48f793202716c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73aaea4e475b7d635e48f793202716c9">&#9670;&#160;</a></span>linear()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::linear </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00190">190</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_problem</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#a93e3a2d3665ed4a8a7e51b610e41dce9">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setLinear()</a>.</p>

</div>
</div>
<a id="aa4d7bdfee487c84a8a3eea33a4848fd7" name="aa4d7bdfee487c84a8a3eea33a4848fd7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4d7bdfee487c84a8a3eea33a4848fd7">&#9670;&#160;</a></span>permutation()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::permutation </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00206">206</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_problem</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#a60cc7449d9f0d93d843780aa3fd36c72">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setInitialSolution()</a>.</p>

</div>
</div>
<a id="a66e89cd77e2cebd9f47b0c1777976aa0" name="a66e89cd77e2cebd9f47b0c1777976aa0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66e89cd77e2cebd9f47b0c1777976aa0">&#9670;&#160;</a></span>quadratic()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_box_constrained_problem.html#ae6ac16940dad311fe5702588be55ce85">MatrixType</a> &amp; <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::quadratic </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>representation of the quadratic part of the objective function </p>

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00186">186</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_problem</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#a5544fa68b725cb68c8af64b4133a7c74">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::BoxConstrainedProblem()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#addce0a45f76c289e79eb03012b26efaf">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::deactivateVariable()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#ae2cc5b2f597778339bdeed341e71eff9">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateSMO()</a>.</p>

</div>
</div>
<a id="a379f06bbd07f0f7851596b5a43f53d3d" name="a379f06bbd07f0f7851596b5a43f53d3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a379f06bbd07f0f7851596b5a43f53d3d">&#9670;&#160;</a></span>reshrink()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::reshrink </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00274">274</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

</div>
</div>
<a id="ae5182e43e8faad6b4996ab251e126032" name="ae5182e43e8faad6b4996ab251e126032"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5182e43e8faad6b4996ab251e126032">&#9670;&#160;</a></span>setInitialSolution() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::setInitialSolution </td>
          <td>(</td>
          <td class="paramtype">RealVector const &amp;&#160;</td>
          <td class="paramname"><em>alpha</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Define the initial solution for the iterative solver. </p>
<p>This method can be used to warm-start the solver. It requires a feasible solution (alpha), for which it computes the gradient of the dual objective function. Note that this is a quadratic time operation in the number of non-zero coefficients. </p>

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00303">303</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#ae0e263a6f4ea23985dd6e4b658e0a047">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::alpha()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a9ac86914b79e249895e9aa37a2eee055">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::dimensions()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ae716d77fe6226ae3d032e39586f54219">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::gradient()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_problem</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a60cc7449d9f0d93d843780aa3fd36c72">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setInitialSolution()</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="a60cc7449d9f0d93d843780aa3fd36c72" name="a60cc7449d9f0d93d843780aa3fd36c72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60cc7449d9f0d93d843780aa3fd36c72">&#9670;&#160;</a></span>setInitialSolution() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::setInitialSolution </td>
          <td>(</td>
          <td class="paramtype">RealVector const &amp;&#160;</td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealVector const &amp;&#160;</td>
          <td class="paramname"><em>gradient</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Define the initial solution for the iterative solver. </p>
<p>This method can be used to warm-start the solver. It requires a feasible solution (alpha) and the corresponding gradient of the dual objective function. </p>

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00282">282</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#ae0e263a6f4ea23985dd6e4b658e0a047">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::alpha()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f65f5e6c2917efadd23806ba823ff2">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::boxMax()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a11b7f562555c6f3718b059eee25bf765">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::boxMin()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a9ac86914b79e249895e9aa37a2eee055">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::dimensions()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ae716d77fe6226ae3d032e39586f54219">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::gradient()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a3ce2ae73fbcee010525160761665fa03">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_gradient</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_problem</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#aa4d7bdfee487c84a8a3eea33a4848fd7">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::permutation()</a>, <a class="el" href="_exception_8h.html#a73abb5049a0168d72a48e72dda41708b">SHARK_ASSERT</a>, <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f62b98e7f7cd1ae112445192f27a1b">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateAlphaStatus()</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#ae5182e43e8faad6b4996ab251e126032">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setInitialSolution()</a>.</p>

</div>
</div>
<a id="a93e3a2d3665ed4a8a7e51b610e41dce9" name="a93e3a2d3665ed4a8a7e51b610e41dce9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93e3a2d3665ed4a8a7e51b610e41dce9">&#9670;&#160;</a></span>setLinear()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::setLinear </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>newValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>adapts the linear part of the problem and updates the internal data structures accordingly. </p>

<p>Reimplemented in <a class="el" href="structshark_1_1_box_based_shrinking_strategy.html#ab68691e44171a2cc4659c19c9a0125d6">shark::BoxBasedShrinkingStrategy&lt; BoxConstrainedProblem&lt; Problem &gt; &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00349">349</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#a73aaea4e475b7d635e48f793202716c9">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::linear()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a3ce2ae73fbcee010525160761665fa03">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_gradient</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_problem</a>.</p>

</div>
</div>
<a id="a5d8e3e168039a9f71b9b1ed0f3b9dc23" name="a5d8e3e168039a9f71b9b1ed0f3b9dc23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d8e3e168039a9f71b9b1ed0f3b9dc23">&#9670;&#160;</a></span>shrink()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::shrink </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00273">273</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

</div>
</div>
<a id="ae85edb4b01745005489b5ced51e4253e" name="ae85edb4b01745005489b5ced51e4253e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae85edb4b01745005489b5ced51e4253e">&#9670;&#160;</a></span>testShrinkVariable()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::testShrinkVariable </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>largestUp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>smallestDown</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00388">388</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#ae716d77fe6226ae3d032e39586f54219">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::gradient()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a066c7548372975c1dd243147c0adc1a3">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::isLowerBound()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#a598687378bfc492935546439156d9836">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::isUpperBound()</a>.</p>

</div>
</div>
<a id="ac897d9b6915bf6899c7f456d63d15503" name="ac897d9b6915bf6899c7f456d63d15503"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac897d9b6915bf6899c7f456d63d15503">&#9670;&#160;</a></span>unshrink()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::unshrink </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00275">275</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

</div>
</div>
<a id="ad2f62b98e7f7cd1ae112445192f27a1b" name="ad2f62b98e7f7cd1ae112445192f27a1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2f62b98e7f7cd1ae112445192f27a1b">&#9670;&#160;</a></span>updateAlphaStatus()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::updateAlphaStatus </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00379">379</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark.html#a51a13ac7e3cbd1f789124f6f132e5d02a28e0b952dcae83b045ba488526875f3c">shark::AlphaFree</a>, <a class="el" href="namespaceshark.html#a51a13ac7e3cbd1f789124f6f132e5d02aba725b5f89015335eeea5ee054dae747">shark::AlphaLowerBound</a>, <a class="el" href="namespaceshark.html#a51a13ac7e3cbd1f789124f6f132e5d02ab7f64265c75300658e04dfbc2ae28db5">shark::AlphaUpperBound</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f65f5e6c2917efadd23806ba823ff2">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::boxMax()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a11b7f562555c6f3718b059eee25bf765">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::boxMin()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a9ac86914b79e249895e9aa37a2eee055">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::dimensions()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#aebedd6dc4e4e1511da942671351e5acf">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_alphaStatus</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_problem</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#a3e70b06e9879ac5d14192b7b1ed551c9">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::activateVariable()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a5544fa68b725cb68c8af64b4133a7c74">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::BoxConstrainedProblem()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a60cc7449d9f0d93d843780aa3fd36c72">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setInitialSolution()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#ae2cc5b2f597778339bdeed341e71eff9">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateSMO()</a>.</p>

</div>
</div>
<a id="ae2cc5b2f597778339bdeed341e71eff9" name="ae2cc5b2f597778339bdeed341e71eff9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae2cc5b2f597778339bdeed341e71eff9">&#9670;&#160;</a></span>updateSMO()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::updateSMO </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Does an update of SMO given a working set with indices i and j. </p>

<p>Reimplemented in <a class="el" href="structshark_1_1_box_based_shrinking_strategy.html#a1bddc03ff11fb5f104e2f1000c7b2093">shark::BoxBasedShrinkingStrategy&lt; BoxConstrainedProblem&lt; Problem &gt; &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00218">218</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_box_constrained_problem.html#a0541d4c711a6d82bf2063d9cf030e551">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::active()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ae0e263a6f4ea23985dd6e4b658e0a047">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::alpha()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f65f5e6c2917efadd23806ba823ff2">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::boxMax()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a11b7f562555c6f3718b059eee25bf765">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::boxMin()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a4b54b554bd89a28a03d63d8dcc97f101">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::diagonal()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ae716d77fe6226ae3d032e39586f54219">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::gradient()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a3ce2ae73fbcee010525160761665fa03">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_gradient</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a4fb5abe606ff4359daa992960634f5a8">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::m_problem</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a66e89cd77e2cebd9f47b0c1777976aa0">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::quadratic()</a>, <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f62b98e7f7cd1ae112445192f27a1b">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateAlphaStatus()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a575b8d0676d0e0f1ab8f476c0e28e434" name="a575b8d0676d0e0f1ab8f476c0e28e434"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a575b8d0676d0e0f1ab8f476c0e28e434">&#9670;&#160;</a></span>m_active</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::m_active</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00375">375</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#a0541d4c711a6d82bf2063d9cf030e551">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::active()</a>.</p>

</div>
</div>
<a id="aebedd6dc4e4e1511da942671351e5acf" name="aebedd6dc4e4e1511da942671351e5acf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aebedd6dc4e4e1511da942671351e5acf">&#9670;&#160;</a></span>m_alphaStatus</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;char&gt; <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::m_alphaStatus</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00377">377</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f65f5e6c2917efadd23806ba823ff2">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::boxMax()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a11b7f562555c6f3718b059eee25bf765">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::boxMin()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#addce0a45f76c289e79eb03012b26efaf">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::deactivateVariable()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a000d9bb8ba192023087461a40cd284d1">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::flipCoordinates()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a066c7548372975c1dd243147c0adc1a3">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::isLowerBound()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a598687378bfc492935546439156d9836">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::isUpperBound()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f62b98e7f7cd1ae112445192f27a1b">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateAlphaStatus()</a>.</p>

</div>
</div>
<a id="a3ce2ae73fbcee010525160761665fa03" name="a3ce2ae73fbcee010525160761665fa03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ce2ae73fbcee010525160761665fa03">&#9670;&#160;</a></span>m_gradient</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">RealVector <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::m_gradient</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>gradient of the objective function at the current alpha </p>

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00373">373</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#a5544fa68b725cb68c8af64b4133a7c74">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::BoxConstrainedProblem()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#addce0a45f76c289e79eb03012b26efaf">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::deactivateVariable()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a000d9bb8ba192023087461a40cd284d1">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::flipCoordinates()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a9b5309afbd6858c2315e315bed865ff6">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::functionValue()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ae716d77fe6226ae3d032e39586f54219">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::gradient()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a60cc7449d9f0d93d843780aa3fd36c72">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setInitialSolution()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a93e3a2d3665ed4a8a7e51b610e41dce9">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setLinear()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#ae2cc5b2f597778339bdeed341e71eff9">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateSMO()</a>.</p>

</div>
</div>
<a id="a4fb5abe606ff4359daa992960634f5a8" name="a4fb5abe606ff4359daa992960634f5a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4fb5abe606ff4359daa992960634f5a8">&#9670;&#160;</a></span>m_problem</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class SVMProblem &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">SVMProblem&amp; <a class="el" href="classshark_1_1_box_constrained_problem.html">shark::BoxConstrainedProblem</a>&lt; SVMProblem &gt;::m_problem</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_box_constrained_problems_8h_source.html#l00370">370</a> of file <a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_box_constrained_problem.html#ae0e263a6f4ea23985dd6e4b658e0a047">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::alpha()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f65f5e6c2917efadd23806ba823ff2">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::boxMax()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a11b7f562555c6f3718b059eee25bf765">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::boxMin()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#addce0a45f76c289e79eb03012b26efaf">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::deactivateVariable()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a4b54b554bd89a28a03d63d8dcc97f101">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::diagonal()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a9ac86914b79e249895e9aa37a2eee055">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::dimensions()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a000d9bb8ba192023087461a40cd284d1">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::flipCoordinates()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a9b5309afbd6858c2315e315bed865ff6">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::functionValue()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ad42a5a9b13d427f07fe532c2a02f88fc">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::getUnpermutedAlpha()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a73aaea4e475b7d635e48f793202716c9">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::linear()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#aa4d7bdfee487c84a8a3eea33a4848fd7">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::permutation()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a66e89cd77e2cebd9f47b0c1777976aa0">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::quadratic()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ae5182e43e8faad6b4996ab251e126032">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setInitialSolution()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a60cc7449d9f0d93d843780aa3fd36c72">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setInitialSolution()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#a93e3a2d3665ed4a8a7e51b610e41dce9">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::setLinear()</a>, <a class="el" href="classshark_1_1_box_constrained_problem.html#ad2f62b98e7f7cd1ae112445192f27a1b">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateAlphaStatus()</a>, and <a class="el" href="classshark_1_1_box_constrained_problem.html#ae2cc5b2f597778339bdeed341e71eff9">shark::BoxConstrainedProblem&lt; SVMProblem &gt;::updateSMO()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Algorithms/QP/<a class="el" href="_box_constrained_problems_8h_source.html">BoxConstrainedProblems.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
